package cn.shuangbofu.guava.event_bus;

import cn.shuangbofu.guice.test.Injectors;

/**
 * Created by shuangbofu on 2020-04-17 16:05
 */
public class Test {
    public static void main(String[] args) {
        EventNotifier notifier = Injectors.getInstance(EventNotifier.class);
//        TestHandler1 handler1 = Injectors.getInstance(TestHandler1.class);
//        TestHandler2 handler2 = Injectors.getInstance(TestHandler2.class);

        notifier.register(new TestHandler1());
//        notifier.register(handler2);

        notifier.notify(Events.INSTANCE.RUN);
        notifier.notify(Events.INSTANCE.START);
        notifier.notify(Events.INSTANCE.STOP);
    }
}
